import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../../shared/shared.module';
import { PageTagComponent } from './page.tag';
import { PetitionViewComponent } from './petitionView.component';
import { TableComponent } from './table.component';

@NgModule({
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild([
      { path: 'edit', component: PetitionViewComponent, data: { title: '信访投诉' } },
      { path: 'view', component: PetitionViewComponent, data: { title: '信访查看' } },
      { path: '**', redirectTo: 'view' }
    ])
  ],
  declarations: [PetitionViewComponent, PageTagComponent, TableComponent],
  exports: [RouterModule]
})
export class PetitionViewModule { }
